<?php
	header("Expires: Mon, 12 Jul 1995 05:00:00 GMT");
	header("Last-Modified: ". gmdate("D, d M Y H.i:s") . " GMT");
	header("Cache-Control: no-store, no-cache, must-revalidate");
	header("Cache-Control: post-check=0, pre-check=0", false); 
	header("Pragma: no-cache"); 
	
	require('includes/config.inc.php');	
		
	$sprache = $_GET['lang'];
	
	if (isset($_GET['lang'])) {
		require('lang/'.$sprache.'.php');
	} else {
		require('lang/de.php');
	}
	$smarty->assign("lang",$lang);

	$do = $_GET['do'].".tpl";
	

	
if (file_exists($_GET['do'].".php")) {

	switch ($_GET['do']) 
		{
		    case "":
				$smarty->assign("do","start.tpl");
				$smarty->assign('title', $lang['start_title']);
				require('start.php');
				break;
				
			case "start":
				$smarty->assign("do","start.tpl");
				$smarty->assign('title', $lang['start_title']);
				require('start.php');
				break;	

			case "user":
				$smarty->assign("do","user.tpl");
				$smarty->assign('title', $lang['user_title']);
				require('user.php');
				break;	
				
			case "groups":
				$smarty->assign("do","groups.tpl");
				$smarty->assign('title', $lang['groups_title']);
				require('groups.php');
				break;		

			case "permissions_nodes":
				$smarty->assign("do","permissions_nodes.tpl");
				$smarty->assign('title', $lang['permissions_node_title']);
				require('permissions_nodes.php');
				break;						
		}
} else {
	$smarty->assign("do","start.tpl");
	$smarty->assign('title', $lang['start']);
	require('start.php');
}


?>